package net.csdra.libraryborrowing.domain.book;

import net.csdra.libraryborrowing.domain.EntityBase;

import javax.persistence.Column;
import javax.persistence.Entity;

/**
 * Created by msf on 2017/9/29.
 * 图书副本
 * metaId关联BookInfo的Id
 */
@Entity
public class BookCopy extends EntityBase {
    //馆内编号
    @Column(unique = true)
    String libNumber;

    //用BookCopyState表示
    String state;

    public BookCopy(String libNumber, String state) {
        this.libNumber = libNumber;
        this.state = state;
    }

    public BookCopy() {
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getLibNumber() {
        return libNumber;
    }

    public void setLibNumber(String libNumber) {
        this.libNumber = libNumber;
    }
}
